package org.example.mapper;


import org.apache.ibatis.annotations.*;
import org.example.entity.User;

import java.util.List;


public interface UserMapper {

    @Insert("insert into user(id,name,age) values (#{id},#{name},#{age})")
    void insert(User user);

    @Update("update user set name=#{name},age=#{age} where id=#{id}")
    void update(User user);

    @Delete("delete from user where id=#{id}")
    void delect(int id);

    @Select("select * from user;")
    List<User> select();

    @Select("select * from user where id=#{id};")
    User selectGebyid(int id);

    User getId66(int id);

}
